<%@ page language="java" contentType="text/html; charset=EUC-KR"
	pageEncoding="EUC-KR"%>
<%@ page import="com.entity.notice.PageTO"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
	<%
	PageTO to = (PageTO)request.getAttribute("page");
	int curPage = to.getCurPage();
	int perPage = to.getPerPage();
	int totalCount = to.getTotalCount();
	
	int totalPage = totalCount / perPage;
	
	if(totalCount % perPage != 0 ) totalPage++;
	for(int i=1; i<=totalPage; i++){
		if(curPage==i){
			out.print("<font size=10 color='red'>"+i +"</font>");
		}else{
			out.print("<a href='list_notice.doo?curPage="+i+"'>"+i +"</a>&nbsp;");
		}
	}
%>
</body>
</html>